import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 导入写好的vuex文件
import store from './store/index.js' //index.js可省略 
Vue.config.productionTip = false

new Vue({
  router,
  store, // 将store注册到vue实例中
  render: h => h(App)
}).$mount('#app')
